import Vue from 'vue'
import VueRouter from 'vue-router'
import Recommend from '../views/Recommend.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Recommend',
    component: Recommend,
  },
  {
    path: '/hotSong',
    name: 'Hot',
    component: ()=>import("@/views/HotSon.vue")
  },
  {
    path: '/search',
    name: 'Search',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import('../views/Search.vue')
  },
  {
    path: '/mv',
    name: 'mv',
    meta:{isShow:true},
    component: ()=>import("@/views/Mv.vue")
  },
  {
    path: '/songList',
    name: 'songList',
    component: ()=>import("@/views/SongList.vue")
  }
]

const router = new VueRouter({
  routes,
  linkExactActiveClass:'myActive'
})

export default router
